package cn.gok.service;

import cn.gok.util.R;

public interface StudentService {
    //登录
    R queryStudentByNameAndPassword(String name, String password);

    //通过学生账号查询账号名是否重复
    R queryStudentByStudentName(String name,int id);

    //通过学生电话查询电话是否重复
    R queryStudentByPhone(String phone,int id);

    //通过学生账号查询账号名是否重复
    R queryStudentByStudentName1(String name);

    //通过学生电话查询电话是否重复
    R queryStudentByPhone1(String phone);

    //修改学生信息
    R updateStudentInfo(int id,String name, String realName, int age,String gender,String phone,String school);

    //查询学生输入的密码是否正确
    R queryPasswordByPassword(String password,int id);

    //修改密码
    R updatePasswordByPassword(String password,int id);

    //检测密保和答案
    R checkStudent(String stuName,String question,String answer);

    //添加密保
    R addSecurityQuestionAndAnswerInfo(int stuId,String question,String answer);

    //通过账号查找密保
    R getQuestionById(String stuId);

    //验证密保是否正确
     R checkQuestionAndAnswer(String question,String answer,String studentName);




}
